import java.net.Socket;

/**
 * @className: client
 * @description: 客户端启动类
 * @author: WangXiaosong
 * @date: 2022/6/8
 **/
public class client {
    public static void main(String[] args) {
        String host = server.host;
        Integer port = server.port;
        try {
            Socket client = new Socket(host, port);//socket连接建立

            ClientThread clientThread = new ClientThread(client);//客户端线程
            clientThread.start();//启动客户端

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
